package com.psy.price.recorder.util;


import org.apache.log4j.Logger;
import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.Level;
import org.apache.log4j.PropertyConfigurator;

public class LogUtil {

	private static Logger logger;

	public static Logger getLogger(){

		logger= Logger.getLogger(LogUtil.class);
		BasicConfigurator.configure();

        PropertyConfigurator.configure("config//log4j.properties");

        // Set the logger level to Level.INFO
        //logger.setLevel(Level.INFO);

        // This request will be disabled since Level.DEBUG < Level.INFO.
       // logger.debug("This is debug.");

        // These requests will be enabled.
        //logger.info("This is an info.");
        //logger.warn("This is a warning.");
        //logger.error("This is an error.");
        //logger.fatal("This is a fatal error.");

		return logger;
	}


}
